<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动态伪类选择器 a的四种状态</title>
    <style>
     /* love(link visited)   hate (hover active)  喜欢 讨厌*/
     a:link{color:#000}
     a:visited{color:gray}
     a:hover{color:red}
     a:active{color:#000;background-color: green;}

     /* a{color:#000}
     a:hover{color:green} */
    </style>

</head>

<body>
    <div>
        <a href="https://www.baidu.com/">庭院深深，不知有多深？</a>
    </div>
</body>

</html>